<?php
    include_once '../../dao/User_DAO.php';

    class User_Service{
        public function __construct(){

        }
        public function checkUser($username,$password){
            $dao = new User_DAO();
            return  $dao->checkUser($username,$password);
        }
        public function getAllUser(){
            $dao = new User_DAO();
            return  $dao->getAllUser();
        }
        public function getUserByID($user_id){
            $dao = new User_DAO();
            return  $dao->getUserByID($user_id);
        }
        public function insertUser($user){
            $dao = new User_DAO();
            return  $dao->insertUser($user);
        }
        public function updateUser($user){
            $dao = new User_DAO();
            return  $dao->updateUser($user);
        }
        public function deleteUser($id){
            $dao = new User_DAO();
            return  $dao->deleteUser($id);
        }
    }
?>